//
//  CKOrderStatusCell.m
//  FreshBee
//
//  Created by chenkai on 16/10/16.
//  Copyright © 2016年 iOS013. All rights reserved.
//

#import "CKOrderStatusCell.h"
#import "CKStatusTimeline.h"

@interface CKOrderStatusCell ()
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UIImageView *yellowCircleImageView;
@property (weak, nonatomic) IBOutlet UILabel *statusLabel;
@property (weak, nonatomic) IBOutlet UILabel *detailLabel;
@property (weak, nonatomic) IBOutlet UIView *topLine;
@property (weak, nonatomic) IBOutlet UIView *bottomLine;
@property (weak, nonatomic) IBOutlet UIView *mySepratorView;


@end

@implementation CKOrderStatusCell

- (void)setStatus_timeline:(CKStatusTimeline *)status_timeline{
    _status_timeline = status_timeline;
    
    self.timeLabel.text = status_timeline.status_time;
    self.statusLabel.text = status_timeline.status_title;
    self.detailLabel.text = status_timeline.status_desc;
    
    if([status_timeline.status_title isEqualToString:@"已完成"]){
        self.yellowCircleImageView.image = [UIImage imageNamed:@"order_yellowMark"];
        self.topLine.hidden = YES;
    }
    if([status_timeline.status_title isEqualToString:@"订单提交成功"]){
        self.bottomLine.hidden = YES;
        self.mySepratorView.hidden = YES;
    }
    
    
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}




@end
